<?php
namespace Services;
/**
 * Created by JetBrains PhpStorm.
 * User: wouterrombaut
 * Date: 9/05/11
 * Time: 21:19
 * To change this template use File | Settings | File Templates.
 */
 
class UserManager {

  private $em;

  private $repo;

  public function __construct(\Doctrine\ORM\EntityManager $em)
  {
    $this->em = $em;
    $this->repo = $this->em->getRepository('Model\Event');
  }

  public function create(\Model\User $user)
  {
    $this->em->persist($user);
    $this->em->flush();
  }

}
